package com.sky.demo.spi;

import java.util.ServiceLoader;

public class Test {

    public static void main(String[] args) {
        ServiceLoader<IMyService> services = ServiceLoader.load(IMyService.class);
        services.forEach(IMyService::hello);
    }
}
